<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditProcessamentoSalarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_idProc}" for="idProc" />
                    <h:inputText id="idProc" value="#{processamentoSalarioController.selected.idProc}" title="#{bundle.EditProcessamentoSalarioTitle_idProc}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_idProc}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_detalhe}" for="detalhe" />
                    <h:inputText id="detalhe" value="#{processamentoSalarioController.selected.detalhe}" title="#{bundle.EditProcessamentoSalarioTitle_detalhe}" />
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_faltas}" for="faltas" />
                    <h:inputText id="faltas" value="#{processamentoSalarioController.selected.faltas}" title="#{bundle.EditProcessamentoSalarioTitle_faltas}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_faltas}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_totalAbono}" for="totalAbono" />
                    <h:inputText id="totalAbono" value="#{processamentoSalarioController.selected.totalAbono}" title="#{bundle.EditProcessamentoSalarioTitle_totalAbono}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_totalAbono}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_totalDesconto}" for="totalDesconto" />
                    <h:inputText id="totalDesconto" value="#{processamentoSalarioController.selected.totalDesconto}" title="#{bundle.EditProcessamentoSalarioTitle_totalDesconto}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_totalDesconto}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_detalheAbono}" for="detalheAbono" />
                    <h:inputText id="detalheAbono" value="#{processamentoSalarioController.selected.detalheAbono}" title="#{bundle.EditProcessamentoSalarioTitle_detalheAbono}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_detalheAbono}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_totalBonus}" for="totalBonus" />
                    <h:inputText id="totalBonus" value="#{processamentoSalarioController.selected.totalBonus}" title="#{bundle.EditProcessamentoSalarioTitle_totalBonus}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_totalBonus}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_detalheBonus}" for="detalheBonus" />
                    <h:inputText id="detalheBonus" value="#{processamentoSalarioController.selected.detalheBonus}" title="#{bundle.EditProcessamentoSalarioTitle_detalheBonus}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_detalheBonus}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_estado}" for="estado" />
                    <h:inputText id="estado" value="#{processamentoSalarioController.selected.estado}" title="#{bundle.EditProcessamentoSalarioTitle_estado}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_estado}"/>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_detalheEstado}" for="detalheEstado" />
                    <h:inputText id="detalheEstado" value="#{processamentoSalarioController.selected.detalheEstado}" title="#{bundle.EditProcessamentoSalarioTitle_detalheEstado}" />
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_fkFolha}" for="fkFolha" />
                    <h:selectOneMenu id="fkFolha" value="#{processamentoSalarioController.selected.fkFolha}" title="#{bundle.EditProcessamentoSalarioTitle_fkFolha}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_fkFolha}">
                        <f:selectItems value="#{folhaSalarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_fkContrato}" for="fkContrato" />
                    <h:selectOneMenu id="fkContrato" value="#{processamentoSalarioController.selected.fkContrato}" title="#{bundle.EditProcessamentoSalarioTitle_fkContrato}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_fkContrato}">
                        <f:selectItems value="#{contratoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditProcessamentoSalarioLabel_data}" for="data" />
                    <h:inputText id="data" value="#{processamentoSalarioController.selected.data}" title="#{bundle.EditProcessamentoSalarioTitle_data}" required="true" requiredMessage="#{bundle.EditProcessamentoSalarioRequiredMessage_data}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{processamentoSalarioController.update}" value="#{bundle.EditProcessamentoSalarioSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditProcessamentoSalarioViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{processamentoSalarioController.prepareList}" value="#{bundle.EditProcessamentoSalarioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditProcessamentoSalarioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
